//package org.coding.springbootdemowebmvc.config;
//
//import org.coding.springbootdemowebmvc.annotation.CodeRule;
//import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
//import org.springframework.beans.factory.config.BeanDefinitionHolder;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
//import org.springframework.core.type.filter.AnnotationTypeFilter;
//
//import java.util.Set;
//
///**
// * @auth guoxh
// * @date 2020/10/17 3:36 下午
// * @desc
// **/
//public class CodeRuleAnnotationScanner extends ClassPathBeanDefinitionScanner {
//    public CodeRuleAnnotationScanner(BeanDefinitionRegistry registry) {
//        super(registry);
//    }
//
//    @Override
//    protected void registerDefaultFilters() {
//        this.addIncludeFilter(new AnnotationTypeFilter(CodeRule.class));
//    }
//
//    @Override
//    protected Set<BeanDefinitionHolder> doScan(String... basePackages) {
//        return super.doScan(basePackages);
//    }
//
//    @Override
//    protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
//        return super.isCandidateComponent(beanDefinition);
//    }
//}
